$(function(){

	//var $callback = $("integra");
	var $callback = $("input[name='integra']");
        
	$("select").multiselect({
		header: false,
                noneSelectedText:"请选择",
                selectedList: 4,
		click: function(event, ui){
                        if(ui.checked) {
                            var value = $callback.attr("value");
                            //alert(value + ui.value +  ",");
                            //var patten = "/^"+ ui.value + ",$/";
                            //if(value.indexof(ui.value + ",") = -1) { 
                                $callback.attr("value",value + ui.value +  ",");
                            //}
                        } else {
                            
                        }
                        
			//$callback.text(ui.value + ' ' + (ui.checked ? 'checked' : 'unchecked') );
		}
		
	});

});

